package win.demonlegion.service.inte;

import java.util.concurrent.Callable;
import java.util.concurrent.Future;

/**
 * 用于管理后台运行子线程服务
 */
public interface BackgroundThreadService {
    <T> Future<T> taskExecute(Callable<T> task);

    <T> Future<T> taskExecute(Runnable task, T result);

    Future<?> taskExecute(Runnable task);
}
